﻿using CleanArchitecture.Core.SharedKernel;
using System;

namespace CleanArchitecture.Infrastructure.Entities.Business
{
    /// <summary>
    /// 业务前端 广告位模块
    /// </summary>
    public partial class Advertise : BaseEntity
    {
        /// <summary>
        /// Gets or sets the 广告位栏名称
        /// </summary>
        public string AdvBannerName { get; set; }
        /// <summary>
        /// Gets or sets the广告位栏显示方式
        /// </summary>
        public EntityEnumConfig.AdertiseDisplay AdvBannerDisplayType { get; set; }
        /// <summary>
        /// Gets or sets the 广告展示类型
        /// </summary>
        public EntityEnumConfig.AdertiseType AdvBannerType { get; set; }
        /// <summary>
        /// 广告栏位宽度 
        /// </summary>
        public int AdvBannerWidth { get; set; }
        /// <summary>
        /// Gets or set 广告栏位高度
        /// </summary>
        public int AdvBannerHeight { get; set; }

        /// <summary>
        /// Gets or sets the 广告位说明
        /// </summary>
        public string AdvBannerDescription { get; set; }

        /// <summary>
        /// Gets or sets the state of the record of the Advertise item is not delete
        /// </summary>
        public EntityEnumConfig.YesorNo IsActive { get; set; }

        public int DisplayOrder { get; set; }

        public DateTime CreatedOnTimeUtc { get; set; }

        public DateTime? StartTimeUtc { get; set; }
        public DateTime? EndTimeUtc { get; set; }
        /// <summary>
        /// 配合 Vue-grid-layout展示栅格图片(不规则矩阵图)
        /// https://github.com/jbaysolutions/vue-grid-layout/blob/master/README-zh_CN.md
        /// </summary>
        public string ItemsJson { get; set; }
    }
}
